package com.example.service;

import java.util.List;
import java.util.Map;

public interface TopicService {
    public List<Map<String,Object>> getHotTopicList();

    public List<Map<String,Object>> getNewTopicList();

    public List<Map<String,Object>> getNiceTopicList();

    public List<Map<String,Object>> getSpecificTypeList(String type);

    public List<Map<String,Object>> getCommentList(Integer tId);

    public List<Map<String,Object>> getGoodTopicList(String goodType);

    public List<Map<String,Object>> getSearchList(String words);

    public Boolean selectIsLike(Integer uId, Integer tId);

    public Integer saveLike(Integer uId, Integer tId, Boolean isLike);

    public Boolean selectIsCollection(Integer uId, Integer tId);

    public Integer saveCollection(Integer uId, Integer tId, Boolean isCollection);

    public Integer insertTopic(Integer uId, String title, String type, String realStatus, String content);
}
